package com.dondedesigns.eh.controller.profile;

import java.util.Arrays;
import java.util.List;

import com.dondedesigns.eh.controller.index.UserAware;
import com.dondedesigns.eh.persistence.AliveStatus;
import com.dondedesigns.eh.persistence.BlUser;
import com.dondedesigns.eh.persistence.Rank;
import com.dondedesigns.eh.persistence.UgStatus;
import com.dondedesigns.eh.persistence.User;
import com.dondedesigns.eh.persistence.dao.BlUserDAO;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class BLUserPage extends ActionSupport implements ModelDriven<User>, UserAware{
	
	private User user;
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}
	
	public List<UgStatus> getListUgStatus() {
		return Arrays.asList(UgStatus.values());

	}
	
	public List<AliveStatus> getListAliveStatus() {
		return Arrays.asList(AliveStatus.values());
	}
	
	public List<Rank> getListRanks() {
		return Arrays.asList(Rank.values());

	}
	
	@Override
	public User getModel() {
		return user;
	}

	@Override
	public void setUser(User user) {
		this.user = user;
		
	}
}
